<ul>
<?php 
//lg($dates);

foreach($dates as $date):?>
<li>ID: <?php echo $date['Date']['date_id']; ?>  | <?=$date['Date']['title']; ?> </li>
<?php endforeach; ?>
</ul>
<?php if(!$dates) echo "No dates in the cart!"; ?>